/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tp.PLK.correct;



/**
 *
 * @author Devon
 */
public class Seller {
    Account account;

     void executePayment(Customer customer,double sumToWithdraw )
    {
        Customer cust = new Customer();
        boolean isWithDrawn = cust.getCreditCard().withdraw(sumToWithdraw);
        if (isWithDrawn)
        {
            double amt = account.addSum(sumToWithdraw);
        }
    }

}
